home *** CD-ROM | disk | FTP | other *** search
- SegTextMasterV1.0.DOC - (c)93 by Titus v. Kraft
-
-
- *---------------------------- Distribution --------------------------------*
-
-
- Excuse my bad english. I hope you understand it.
-
- Note: SegTextMaster is freeware
-
- you can freely copying and mailboxing the program as long as all files
- being together without sending me any fee, and you can use all the sources
- in your program anyway if you want to sell it, too. But making any profit by
- distributing SegTextMaster is stricktly prohibited. Thank you.
-
- This files going along with SegTextMaster:
-
- SegTextMaster.DOC : introducion
- SegTextMaster : executable version 1.0 of SegTextMaster
-
- directory "Examples"
-
- example : executable example (CLI)
- example.c : source of the example
- example.asm : source of an assembly example
- example-text.asc : a sample text
- example-text.stf : the sample text coded by SegTextMaster
-
-
- *------------------------------ Programing --------------------------------*
-
-
- SegTextMaster is written in 100% assembly source. You know the reason why I
- cannot guarantee for the functionallity of the program. I don't be res-
- ponsible for bad consequences which may damage anything of your system. So
- use the program on your own risk!
-
- I guess SegTextMaster is real-good coded at all since I don't found a bug.
- If there is anything let me know. SegTextMaster needs eigther the asl-
- or the arp-library to run. It's a bit font-sensitiv and works very quickly.
-
- SegTextMastersV1.00's len : 8900 bytes
- required stack : 4000 bytes
- working with : workbench or shell
-
-
- *---------------------- What's about SegTextMaster? -----------------------*
-
-
- Maybe you want to write a text-adventure or a spell-checker. In any case
- your program have to handle with a great amont of text.
-
- The next difficult thing is how can be included the text directly in your
- program if every text-string should be seperately coded. SegTextMaster
- does this job. It minimizes the compiling- or assembling-time.
-
- SegTextMaster reads a pre-formated text and build up an array of char with
- a header on the top of it.
-
-
- This shows you the header:
-
- base: ULONG ID ; "STF"+0-byte
- ULONG Segments ; Segments
- ULONG Flags
- ULONG NULL ; it's reserved for later use
-
- ULONG longword-offsets ...
-
-
- Every longword offset added to the base points to a text segment in each
- case. A text segment is nothing else as a c-string. SegTextMaster writes
- only offsets not pointers! your program may jump in the MakeSegTextPtrs-
- routine to change all them offsets to pointers. Now it's simple to add new
- pointers to the array.
-
-
- For reading a segment in your program there's a function:
-
- SegMemPtr = GetTextSeg(Segment,Segment-Base,Password)
-
-
- *------------------------- The pre-formated text --------------------------*
-
-
- SegTextMaster accepts texts like this:
-
-
- @1 this is a example of a text-segment@
-
- @0002 this is the next text-example@
-
- this is a coment.
-
- @0003 and this are the last one
- @
-
- The numbers after the '@'-char are the segment numbers. SegTextMaster will
- sort the offsets by the number values. In the sample above the '@'-char is
- reserved for SegTextMaster and cannot used in the text segments (RBYTE).
- However, you are able to insert or cut off a text segment on every place in
- your text without destroing the order of the array.
-
-
- *------------------------- Important conditions ---------------------------*
-
-
- Every text-segment have to lie between two reserved bytes like '@'-chars.
- The first reserved byte have to directly followed by a decimal segment
- number. This number have to followed by a blank byte for optical reasons.
- Realize: the segment's first number is 1 not 0!
- The password have to be at least 2 bytes long.
-
-
- *--------------------------- Preferences ----------------------------------*
-
-
- you can change the preferences of SegTextMaster in the tool-types of
- it's icon. Click in the default-tools and input in the variables.
- SegTextMaster defaults to every record.
-
-
- CODING=ON/OFF : switch on/off coding of the text
-
- PASSWORD=HokusPokus : the password
-
- RBYTE=@ : the reserved byte
-
- MAXEMPTYSLOTS=30 : maximum of empty slots
-
- STATISTICS=CON:0/0/... : the window/file for the statistics
-
-
- *----------------------------- Statistics ---------------------------------*
-
-
- A really important thing is you overlook your text. The statistics-window
- will show you all the empty text-slots. If SegTextMaster find failures
- in your text like double numbers it will output a request with a message
- on it.
-
-
- *-------------------------------- Hints -----------------------------------*
-
-
- It's the best way you write the segment numbers with four digits.
- your editor will find them better.
-
- The finally used password should be contain as much as possible cryptic
- bytes but it's also clever to take a failure-message of your program.
-
-
- *------------------------------ Support -----------------------------------*
-
-
- If there is enough of interest response about this software I will improve
- the features of SegTextMaster in future realeases.
-
-
- Send suggestings, bug reports and greatings to this adress:
-
- Titus v. Kraft, c/o Emme
- Bahrenfelder Marktplatz 17
- 22761 Hamburg, GERMANY
-